<?php

$data = file_get_contents("http://zhaopin.baidu.com/");

$preg = "/<a href=\".+?\" data-click=\"{\'click-act\': \'left_category\'}\" class=\"job-classify-btn\" data-a-66401287>(.+?)<\/a>/";

$c = preg_match_all($preg,$data,$out);

var_dump($c);
// var_dump($out);

$str = json_encode($out[1],JSON_UNESCAPED_UNICODE);

file_put_contents('./job.txt', $str);
